import request from '@/utils/request'

const userBastUrl = '/dms_supervision/yppmb'

export function getYppmbList(data) {
  console.log("data--------------------------------------");
  console.log(data);
  return request({
    url: userBastUrl + '/list',
    method: 'post',
    data: data || {}
  })
}

export function save(data) {
  return request({
    url: userBastUrl,
    method: 'post',
    data: data || {}
  })
}


export function update(data) {
  return request({
    url: userBastUrl,
    method: 'put',
    data: data || {}
  })
}

export function del(id) {
  return request({
    url: userBastUrl + '/' + id,
    method: 'delete',
  })
}

export function delList(data) {
  return request({
    url: userBastUrl + "/list",
    method: 'delete',
    data: data || {}
  })
}

export function getById(id) {
  return request({
    url: userBastUrl + '/' + id,
    method: 'get',
  })
}

